//
//  HBFeedbackCell.m
//  HeartBeat
//
//  Created by karong on 2023/9/7.
//

#import "HBFeedbackCell.h"

@implementation GRFeedbackType
@end
@implementation GRFeedbackImage
@end

@interface HBFeedbackCell ()
@property (weak, nonatomic) IBOutlet UIButton *imageBtn;
@property (weak, nonatomic) IBOutlet UIButton *delBtn;
@end

@implementation HBFeedbackCell
- (void)setDataWithObject:(GRFeedbackImage *)object {
    self.delBtn.hidden = object.type == 0;
    [self.imageBtn setImage:object.image forState:(UIControlStateNormal)];
}

- (IBAction)delAction:(id)sender {
    if ([self.delegate respondsToSelector:@selector(feedbackCellDelAction:)]) {
        [self.delegate feedbackCellDelAction:self];
    }
}
@end
